// app.js
App({
  // 权限询问
 // 权限询问
 getRecordAuth: function() {
  wx.getSetting({
    success(res) {
        console.log(res)
      if (!res.authSetting['scope.record']) {
        wx.authorize({
          scope: 'scope.record',
          success() {
              // 用户已经同意小程序使用录音功能，后续调用 wx.startRecord 接口不会弹窗询问
              console.log("succ auth")
          }, fail() {
              console.log("fail auth")
          }
        })
      } else {
        console.log("record has been authed")
      }
    }, fail(res) {
        console.log("fail")
        console.log(res)
    }
  })
},



})
